package com.company.project.authorization.service.impl;

import swingxrcp.framework.server.bean.Bean;
import swingxrcp.framework.server.service.AbstractService;

import com.company.project.authorization.domain.User;
import com.company.project.authorization.exception.LoginException;
import com.company.project.authorization.service.LoginService;

@Bean("loginService")
public class LoginServiceImpl extends AbstractService implements LoginService {

	public User login(String username, String password) throws LoginException {
		User user = new User();
		user.setId(123L);
		user.setUsername(username);
		user.setEmail(username + "@163.com");
		return user;
	}

}
